From: Benjamin Otte Date: Sat, 20 Nov 2021 04:56:14 +0000 (+0100) Subject: paned: Always query at least min size X-Git-Tag: archive/raspbian/4.6.5+ds-1+rpi1~1^2~91^2^2~125^2~3 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=244ddea0ea84f9f6b4306c2981f897fa374c2af5;p=gtk4.git paned: Always query at least min size For shrinking children, we would not make sure of this and just throw the current size at them. --- diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c index e4d8ff8124..aebfd91ac7 100644 --- a/gtk/gtkpaned.c +++ b/gtk/gtkpaned.c @@ -1184,6 +1184,11 @@ gtk_paned_get_preferred_size_for_opposite_orientation (GtkWidget *widget, NULL, NULL, &for_start_child); for_end_child = size - for_start_child - handle_size; + + if (paned->shrink_start_child) + for_start_child = MAX (start_child_req, for_start_child); + if (paned->shrink_end_child) + for_end_child = MAX (end_child_req, for_end_child); } else {